home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Linux Cubed Series 3: Developer Tools
/
Linux Cubed Series 3 - Developer Tools.iso
/
devel
/
lang
/
eiffel
/
smalleif.97
/
se.t
/
SmallEiffel
/
lib_show
/
gcd
/
test_gcd.e
< prev
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1996-05-02
|
467 b
|
27 lines
-- Part of SmallEiffel -- Read DISCLAIMER file -- Copyright (C)
-- Dominique COLNET and Suzanne COLLIN -- colnet@loria.fr
--
class TEST_GCD
--
-- Have a look to INTEGER/gcd.
--
-- Note: SmallEiffel handle recursivity in assertions.
--
creation {ANY}
make
feature {ANY}
make is
do
check
(3).gcd(4) = 1;
(4).gcd(4) = 4;
(8).gcd(4) = 4;
(9).gcd(8) = 1;
(9).gcd(12) = 3;
end;
end;
end -- TEST_GCD